package com.leonzhangxf.bucksdemo.order;

import com.leonzhangxf.bucksdemo.order.domain.OrderServiceImpl;
import com.leonzhangxf.bucksdemo.order.domain.OrderRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OrderConfiguration {

    @Bean
    public OrderServiceImpl orderService(OrderRepository orderRepository) {
        return new OrderServiceImpl(orderRepository);
    }
}
